<%-- 
    Document   : index
    Created on : Oct 20, 2010, 10:29:32 AM
    Author     : beomjoongkwon
--%>

<%@page import="javax.naming.InitialContext"%>
<%@page import="javax.ejb.EJB"%>
<%@page import="javax.servlet.http.*"%>
<%@page import="Hangman.*"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Log In</title>

    <style type="text/css">
        body {
        margin:0;
        }
        #wrap {
        width:300px;
        height:140px;
        background-color:#A7C8A5;
        position:absolute;
        top:50%;
        left:50%;
        margin-top:-60px;
        margin-left:-150px;
        }
    </style>

    </head>
    <body>
        <%
        if (request.getParameter("logout") != null) {
            HangmanBeanRemote hangmanBean = new HangmanBean();
            hangmanBean.logout(request.getParameter("name"));
            //System.out.println(request.getParameter("name"));
            }
        %>

        <div id="wrap"><center><br>

        <form method="post" action="WelcomeServlet">
                User Name <input type="text" name="name" value="" /><br>
                Password <input type="password" name="password" value="" /><br>
                <input type="submit" value="Sign In" name="signIn" /><br><br>
        </form>

        <form action="registration.jsp">
                <input type="submit" value="Register New Account" name="signUp"/><br>
        </form>            
            </center></div>

        
    </body>
</html>
